package com.longsunhd.yum.buffalo.bean;

import java.util.List;

/**
 * 作者：黄宣淇
 * 时间：2021/5/12 0012
 * 如何代码没有备注，一个月后，只有你和上帝知道--鲁迅
 */
public class GetMikeFieldBean {

    /**
     * code : 200
     * data : {"title":"产奶记录","form":[{"name":"ID","field":"id","type":"hidden","value":1,"require":false},{"name":"牛只","field":"buffalo_id","type":"hidden","value":1,"require":true},{"name":"产奶量","field":"production","type":"digit","value":1,"require":true},{"name":"产奶日期","field":"date","type":"datetime","value":"2021-04-22 00:00:00","require":false},{"name":"产奶时段","field":"period","type":"radio","value":null,"option":[{"value":0,"name":"上午"},{"value":1,"name":"下午"}],"require":false},{"name":"胎次","field":"parity","type":"number","value":null,"require":false}]}
     * msg : 成功
     */

    private int code;
    private DataBean data;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static class DataBean {
        /**
         * title : 产奶记录
         * form : [{"name":"ID","field":"id","type":"hidden","value":1,"require":false},{"name":"牛只","field":"buffalo_id","type":"hidden","value":1,"require":true},{"name":"产奶量","field":"production","type":"digit","value":1,"require":true},{"name":"产奶日期","field":"date","type":"datetime","value":"2021-04-22 00:00:00","require":false},{"name":"产奶时段","field":"period","type":"radio","value":null,"option":[{"value":0,"name":"上午"},{"value":1,"name":"下午"}],"require":false},{"name":"胎次","field":"parity","type":"number","value":null,"require":false}]
         */

        private String title;
        private List<FormBean> form;

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public List<FormBean> getForm() {
            return form;
        }

        public void setForm(List<FormBean> form) {
            this.form = form;
        }

        public static class FormBean extends FieldFormationBean {

        }
    }
}
